package util.paramvo;

import java.util.List;

public class SearchParamVO {
	private List<String> wordList;
	private int subline_no;
	private int line_no;
	private int region_no;
	private String column;
	private int univtype_no;
	private int rowPerPage;
	private int page;
	
	public SearchParamVO() {}
	
	/**
	 * countSearchedUnitByWord
	 * @param wordList 검색 단어 리스트
	 * @param univtype_no 0(모두)/1(4년제)/2(2년제)
	 */
	public SearchParamVO(List<String> wordList, int univtype_no) {
		this.wordList = wordList;
		this.univtype_no = univtype_no;
	}

	/**
	 * countSearchedUnitByRegion
	 * @param region_no 세부지역
	 * @param univtype_no 0(모두)/1(4년제)/2(2년제)
	 */
	public SearchParamVO(int region_no, int univtype_no) {
		this.region_no = region_no;
		this.univtype_no = univtype_no;
	}

	/**
	 * getSearchedUnitByWord
	 * @param wordList 검색 단어 리스트
	 * @param column 정렬할 커럼
	 * @param univtype_no 0(모두)/1(4년제)/2(2년제)
	 * @param rowPerPage 한 페이지 줄 수
	 * @param page 불러올 페이지
	 */
	public SearchParamVO(List<String> wordList, String column, int univtype_no,
			int rowPerPage, int page) {
		this.wordList = wordList;
		this.column = column;
		this.univtype_no = univtype_no;
		this.rowPerPage = rowPerPage;
		this.page = page;
	}

	/**
	 * getSearchedUnitByRegion
	 * @param region_no 세부지역
	 * @param column 정렬할 컬럼
	 * @param univtype_no 0(모두)/1(4년제)/2(2년제)
	 * @param rowPerPage 한 페이지 줄 수
	 * @param page 불러올 페이지
	 */
	public SearchParamVO(int region_no, String column, int univtype_no,
			int rowPerPage, int page) {
		this.region_no = region_no;
		this.column = column;
		this.univtype_no = univtype_no;
		this.rowPerPage = rowPerPage;
		this.page = page;
	}
	
	/**
	 * getSearchedUnitBySubline. overloading 때문에 인자 순서 바꿈
	 * @param column 정렬할 컬럼
	 * @param subline_no 세부계열
	 * @param univtype_no 0(모두)/1(4년제)/2(2년제)
	 * @param rowPerPage 한 페이지 줄 수
	 * @param page 불러올 페이지
	 */
	public SearchParamVO(String column, int subline_no, int univtype_no,
			int rowPerPage, int page) {
		this.column = column;
		this.subline_no = subline_no;
		this.univtype_no = univtype_no;
		this.rowPerPage = rowPerPage;
		this.page = page;
	}
	
	/**
	 * getSearchedUnitByLine
	 * @param line_no
	 * @param univtype_no
	 * @param rowPerPage
	 * @param page
	 * @param column
	 */
	public SearchParamVO(int line_no,  int univtype_no,
			int rowPerPage, int page, String column) {
		this.line_no = line_no;
		this.column = column;
		this.univtype_no = univtype_no;
		this.rowPerPage = rowPerPage;
		this.page = page;
	}

	public List<String> getWordList() {
		return wordList;
	}

	public void setWordList(List<String> wordList) {
		this.wordList = wordList;
	}

	public int getSubline_no() {
		return subline_no;
	}

	public void setSubline_no(int subline_no) {
		this.subline_no = subline_no;
	}

	public int getRegion_no() {
		return region_no;
	}

	public void setRegion_no(int region_no) {
		this.region_no = region_no;
	}

	public String getColumn() {
		return column;
	}

	public void setColumn(String column) {
		this.column = column;
	}

	public int getUnivtype_no() {
		return univtype_no;
	}

	public void setUnivtype_no(int univtype_no) {
		this.univtype_no = univtype_no;
	}

	public int getRowPerPage() {
		return rowPerPage;
	}

	public void setRowPerPage(int rowPerPage) {
		this.rowPerPage = rowPerPage;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}
	
	public int getLine_no() {
		return line_no;
	}

	public void setLine_no(int line_no) {
		this.line_no = line_no;
	}

	@Override
	public String toString() {
		return "SearchParamVO [wordList=" + wordList + ", subline_no="
				+ subline_no + ", line_no=" + line_no + ", region_no="
				+ region_no + ", column=" + column + ", univtype_no="
				+ univtype_no + ", rowPerPage=" + rowPerPage + ", page=" + page
				+ "]";
	}
}
